<?php

if (count($messages) > 0)
    foreach ($messages as $row) {
        echo "<tr>\n";
        echo "<td><img src='" . base_url() . "/images/" . $row->from . "/avatar.gif' alt='' />";
        echo "<a href='".base_url()."administration/dialogs/index/{$row->from}'>{$row->username_from}</a></td>";
        echo "<td class='dd'> <=> </td>";
        echo "<td><img src='" . base_url() . "/images/" . $row->to . "/avatar.gif' alt=''  />";
        echo "<a href='".base_url()."administration/dialogs/index/{$row->to}'>{$row->username_to}</a></td>";

        echo "<td><span>" . $row->time . "</span><br/>";
        echo "<p>" . $row->content . "</p></td>";

        echo "</tr>\n\n";
    }
else
    echo "<tr><td>" . lang('no_conversations') . "</td></tr>";
?>
